﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TJ_BLXFFSCGModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.TJ_BLXFFSCGModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 <title>心肺复苏成功例数统计</title>
       <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            reload();
        });
        function fillCombobox() {

            //心肺复苏是否成功
            $('#txtCenterAuditResult').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                data: [{
                    ID: '通过',
                    Name: '通过'
                },{
                    ID: '未通过',
                    Name: '未通过'
                }],
                //data: [
               
                //{
                //    ID: '通过',
                //    Name: '通过'
                //},
                //{
                //    ID: '未通过',
                //    Name: '未通过'
                //}
                //],
                onSelect: function () {
                    $('#txtCenterAuditResult').combobox('getValue');
                }
                //,
                //onLoadSuccess: function () {
                //    var data = $('#txtCenterAuditResult').combobox('getData');
                //    $("#txtCenterAuditResult").combobox('select', data[0].ID);
                //}

            })

        }

        // 实现UpdatePanel中可以再添加easyUI的样式
        function reload() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        }
        function EndRequestHandler() {
            fillCombobox();
            $('#selectyear').numberbox();
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>
                     <table>
                        <tr>
                            <td>查询年份：</td>
                            <td>
                                <asp:TextBox ID="selectyear" class="easyui-numberbox" Style="width: 150px" runat="server"  ></asp:TextBox>
                            </td>
                           
                             <td style="text-align: right">心肺复苏审核结果：</td>
                            <td>
                                <asp:TextBox ID="txtCenterAuditResult" class="easyui-combobox" Style="width: 100px" runat="server"></asp:TextBox>

                            </td>
                           
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                            </td>

                        </tr>

                    </table>
                  </ContentTemplate>

        </asp:UpdatePanel>

              <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">
                  <rsweb:ReportViewer ID="ReportViewer1" Width="100%" Height="100%"   SizeToReportContent="True"  runat="server" ></rsweb:ReportViewer>

                  </div>
    </div>
    </form>
</body>
</html>
